package cc.lj.internal.coupons.interfaces.dto.command;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 新增封顶额商户-command
 * @author liangxifeng
 * @date 2021-12-20
 */
@Data
@NoArgsConstructor
@ApiModel("新增封顶额商户入参-command")
@Validated
@Accessors(chain = true)
public class AddCapMerchantCommand {
    /**
     * 封顶额活动表主键
     */
    @ApiModelProperty(value = "关联封顶额活动表主键")
    @Min(value=1,message = "关联封顶额活动表主键必须>=1的数字")
    private Integer capId;
    /**
     * 倍数模型表主键
     */
    @ApiModelProperty(value = "关联倍数模型表主键")
    @Min(value=1,message = "关联倍数模型表主键必须>=1的数字")
    private Integer modelId;
    /**
     * 关联物业资源展位表主键
     */
    @ApiModelProperty(value = "关联物业资源展位表主键")
    @Min(value=1,message = "关联物业资源展位表主键必须>=1的数字")
    private Integer resourceId;
    /**
     * 商户展位号
     */
    @ApiModelProperty(value = "商户展位号")
    @NotBlank(message = "商户展位号不可为空")
    private String merchantShow;
    /**
     * 商户区域
     */
    @ApiModelProperty(value = "商户区域")
    @NotBlank(message = "商户区域不可为空")
    private String merchantArea;
    /**
     * 商户展位建筑面积
     */
    @ApiModelProperty(value = "商户展位建筑面积")
    @DecimalMin(value = "1",message = "商户展位建筑面积必须>=1" )
    private BigDecimal showSpace;
    /**
     * 每日租金
     */
    @ApiModelProperty(value = "每日租金")
    @DecimalMin(value = "1",message = "每日租金必须>=1" )
    private BigDecimal dayRent;
    /**
     * 卖场封顶额
     */
    @ApiModelProperty(value = "卖场封顶额")
    @Min(value=1,message = "卖场封顶额必须>=1的数字")
    private Integer martCapValue;
}
